A
@rskoniec Hi,
Only one of my Gateways out of two accepted join request, but still on the terminal I got the message as not yet joined. I saw the device eui displayes in Gateway join request message is APP eui which was false.
I included device eui also in my code(Also I cant be very sure if it is what got my device to join but it worked for me). By the way I used sample code available on pycom docs for LoRaWAN OTAA.
# create an OTAA authentication parameters
device_eui = binascii.unhexlify('FFFFFFFFFFFFFFFFF')
app_eui = binascii.unhexlify('FFFFFFFFFFFFFFFFF')
app_key = binascii.unhexlify('FFFFFFFFFFFFFFFFF')
# join a network using OTAA (Over the Air Activation)
lora.join(activation=LoRa.OTAA, auth=(device_eui, app_eui, app_key), timeout=0)
# wait until the module has joined the network
while not lora.has_joined():
time.sleep(2.5)
print('Not yet joined...')
# create a LoRa socket
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
# set the LoRaWAN data rate
s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)
# make the socket blocking
# (waits for the data to be sent and for the 2 receive windows to expire)
s.setblocking(True)